package com.tdam2013.grupo04;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

public abstract class AbstractMainActivity extends FragmentActivity  {
	FragmentManager  fragmentManager;
	
	
	//protected abstract Fragment createFragmentOnCreate();
	
	//protected abstract Fragment createFragmentOnResume();

	
	@Override
	 public void onCreate(Bundle savedInstanceState) {
	 super.onCreate(savedInstanceState);
	 
		this.setContentView(R.layout.activity_main2);
		//this.dbHelper = new DatabaseHelper(this.getApplicationContext());
		 fragmentManager=getSupportFragmentManager();
//		 Fragment fragment = fragmentManager.findFragmentById(R.id.fragmentoAgendaContactos);
//		 if (fragment == null) {
//		// fragment = createFragmentOnCreate();
//		 fragmentManager.beginTransaction()
//		 .add(R.id.fragmentoAgendaContactos, fragment)
//		 .commit();
		// }
	}
	
//	@Override
//	 public void onResume() {
//	 super.onResume();
//	 
//		fragmentManager=getSupportFragmentManager();
//		 Fragment fragment = fragmentManager.findFragmentById(R.id.fragmentoRecientes);
//		 if (fragment == null) {
//		 fragment = new FragmentoEmailRecientes();
//		 fragmentManager.beginTransaction()
//		 .add(R.id.fragmentoRecientes, fragment)
//		 .commit();
//		 }
//	}

}
